<template>
    <div>
      <div class="header">测测App主页</div>
      <ul class="quiz-list">
        <li v-for="quiz in quizzes" :key="quiz.id">
          <h3>{{ quiz.title }}</h3>
          <p>{{ quiz.description }}</p>
        </li>
      </ul>
    </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        quizzes: [
          {
            id: 1,
            title: "人格测试",
            description: "了解你的个性特点和潜在优势",
          },
          {
            id: 2,
            title: "职业兴趣测评",
            description: "找到适合你发展的职业方向",
          },
          {
            id: 3,
            title: "情商测试",
            description: "评估你的情感智慧水平",
          },
          {
            id: 4,
            title: "智商测试",
            description: "估测你的智力水平",
          },
        ],
      };
    },
  };
  </script>
  
  <style scoped>
  .header {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .quiz-list {
    padding: 0;
    list-style: none;
  }
  
  .quiz-list li {
    background-color: #f1f1f1;
    padding: 20px;
    margin-bottom: 10px;
  }
  
  .quiz-list li h3 {
    margin: 0 0 10px;
  }
  
  .quiz-list li p {
    margin: 0;
  }
  </style>